package com.example.shixun.dao;

import com.example.shixun.pojo.Course;
import com.example.shixun.pojo.Post;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/24 15:53
 */
@Mapper
public interface PostDao {
    Integer savePost(Post post);
    Integer deletePostById(int id);
    Post selectPostById(int id);
    Integer updatePost(Post post);
    List<Post> findAll(Post post);
    Integer addReplies(Integer id);
    Integer subReplies(Integer id);
}
